﻿namespace Yaaf.WP7.NativeAccess.ComWrapper.HTC.COM_NativeAccess
{
    using Microsoft.Phone.InteropServices;

    using System;

    using Yaaf.WP7.NativeAccess.Helper;

    internal static class Shell
    {
        private static INativeShell nativeShell;

        static Shell()
        {
            Devices.Initialize();
            InteropHelper.RegisterDll("COM_NativeAccess.dll", "DE3E8C83-662F-493E-A095-BBAA120B3948");
            nativeShell = new NativeShell() as INativeShell;
        }

        public static bool LaunchSessionByUri(string pageUri)
        {
            nativeShell.LaunchSessionByUri(pageUri);
            return true;
        }
    }
}

